package com.lzh.java;

public class Student extends Person {
	
//	String name;
//	int age;
	String major;
	
	public Student() {
		
	}

	public Student(String name, int age, String name2, int age2, String major) {
		super(name, age);
		name = name2;
		age = age2;
		this.major = major;
	}
	
//	public void eat() {
//		System.out.println("吃饭");
//	}
//	public void sleep() {
//		System.out.println("睡觉");
//	}
	
	public void study() {
		System.out.println("学习");
	}
	public void show() {
		System.out.println("name:"+name + ",age"+ getAge());
	}
	
}
